<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Configuration
 *
 * @author MinhNguyen
 */

// Include twitteroauth
require_once('twitteroauth.php');

class Tweet {
    //put your code here
    public $consumerKey;
    public $consumerSecret;
    public $accessToken;
    public $accessTokenSecret;
    public $tweet;
    
    public function __get($name) {
        return $this->$name;
    }
    
    public function __set($name, $value) {
        $this->$name = $value;
    }
    
    public function __construct() {
        //alloc your stuff
    }
    
    public static function withData($consumerKey, $consumerSecret,
                                    $accessToken, $accessTokenSecret) {
        $instance = self();
        $instance->tweet = new TwitterOAuth($consumerKey, $consumerSecret, $accessToken, $accessTokenSecret);
        return $instance;
    }
}
?>
